﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddBaseArt.aspx.cs" Inherits="Com.CMS263.Web.manage.SubBaseArt.AddBaseArt" %>
<%@ Import Namespace="Com.CMS263.PO" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
      <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <link href="../common/validator.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #title {
            width: 531px;
        }
    </style>
    <script language="javascript" src="../js/jquery-1.4.2.min.js"></script>
    <script language="javascript" >
        var ap = '<%=Request["menuId"] %>';
        $(function() {
            $("[name=chk]").each(function() {

            if (this.value == ap) {
                    this.visible = false;
                    this.checked = true;
                }
            });

        })
    </script>
</head>
<body>
    <form id="form1" runat="server" enctype="multipart/form-data">
    <div>
        <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="table_1">
            <tr>
                <td height="23" colspan="2" class="table_2">
                    添加/修改 <asp:label runat="server" id="lbTypeName"></asp:label>
                </td>
            </tr>
            <tr>
                <td >
                    标题:
                </td>
                <td >
                 <input type="text" name="title" id="title" MaxLength="140" />
                &nbsp;<asp:CheckBox ID="chkRed" runat="server" Text="标红" 
                        TextAlign="Left"  />
                    <asp:CheckBox ID="chkStrong" runat="server" 
                         Text="加粗" TextAlign="Left" />
                </td>
            </tr>
           
           
           
            <tr>
                <td class="tdleft">
                    添加时间</td>
                <td class="tdside">
                
                     <input type="text" value="<%=DateTime.Now.ToString() %>" name="addDate" id="addDate" />
                    
                </td>
            </tr>
          <tr>
                <td class="tdleft">
                    浏览次数</td>
                <td class="tdside">
                
                     <input type="text" value="0" name="clickCount" id="Text1" />
                    
                </td>
            </tr>
            <tr>
                <td class="tdleft">
                    操作</td>
                <td class="tdside">
                <table><tr><td>排序</td><td><input type="text"  style="width:92px"  value="<%=GetMax() %>" name="OrderNum" id="Text2" /></td><td>是否推荐</td><td>
                    <asp:CheckBox ID="chkBest" runat="server" /></td></tr></table>
                     
                    
                </td>
            </tr>
           
           
            <!--开始扩展属性-->
            <%foreach (Com.CMS263.PO.ExtAttribute item in extList)
              {
                  if (item.attrType != 9)
                  { %>
             <tr>
                <td class="tdleft">
                    <%=item.attrTxtName%>:
                </td>
                <td class="tdside">
                  <%=extbll.ShowAttr(item)%>
                    &nbsp;</td>
            </tr>
            <%}
              }%>
           <!--结束扩展属性-->
            
            <tr>
                    <td class="tdleft">
                       </td>
                    <td class="tdside">
                        <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" /> 
                        <asp:HiddenField ID="hdfTypeId" runat="server" />
                        <asp:HiddenField ID="hdfMenuId" runat="server" />
                    </td>
                </tr>
        </table>
    </div>
    </form>
</body>
</html>
